{% extends 'index/base.html' %}

{% block title %}登录 - Polymer{% endblock %}

{% block content %}
<div class="mt-5 pt-5" style="height: calc(100vh - 114px);">
    <div class="row h-100 justify-content-center align-items-center">
        <div class="col-lg-4 col-sm-8 animated fadeIn">
            <div class="z-depth-2 card">
                <div class="card">
                    <div class="white text-center py-4">
                        <h5><strong>页面需要登录才能访问</strong></h5>
                    </div>
                    <div class="px-lg-5 pt-0 card-body">
                        <form method="post" class="text-center ng-untouched ng-pristine ng-invalid" novalidate="" style="color: #757575;">
                            {{ form.csrf_token }}
                            <div class="md-form">
                                {{ form.email(class="form-control validate-error ng-untouched ng-pristine ng-invalid") }}
                            </div>
                            <div class="md-form">
                                {{ form.password(class="form-control validate-error ng-untouched ng-pristine ng-invalid") }}
                            </div>
                            {{ form.submit(class="my-4 z-depth-0 btn btn-primary btn-block") }}
                            <p>没有帐户？<a href="{{ url_for('auth.register') }}">点击注册</a>
                            </p>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block js %}{% endblock %}